]> dgit.raspbian.org Git - gnome-shell.git/commit
shell/screenshot: Throw error on failure
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 24 Mar 2020 06:15:26 +0000 (07:15 +0100)
committerCarlos Garnacho <mrgarnacho@gmail.com>
Tue, 24 Mar 2020 11:29:53 +0000 (11:29 +0000)
commit35484151cece2dbb3d6c6b81c4ca285b1897e84c
treee662c7ad06754af659ebe27740a0907d34018ce2
parent1bccbe7f11c0523c375b2404e2d489e8bfc044a2
shell/screenshot: Throw error on failure

Commit da537cda43 moved the Shell.Screenshot API to GIO's async pattern,
but we never set the GError passed to the *_finish() functions and only
indicate failure by returning FALSE.

The expected behavior is to throw an error in that situation, so make sure
we do that.

https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1123
js/ui/screenshot.js
src/shell-screenshot.c